package com.jishuo.base.bean.vo;

import lombok.Data;

import java.util.List;

/**
 * 系统菜单
 */
@Data
public class MenuVO {
    private String menuId;
    private String menuName;
    private String parentId;
    private int orderBy;
    private String url;
    private String icon = "";
    private String _parentId;

    private List<MenuVO> subMenus;

    public void setIcon(String icon) {
        this.icon = (icon == null) ? "" : icon;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
        if (!"0".equals(parentId)) this._parentId = parentId;
    }
}
